package com.example.chat.repository;

import com.dragonsoftbravo.jpadsl.JPADslBaseDao;
import com.example.chat.model.Employee;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @Description
 * @Date 2022/11/16 23:25
 * @Author pq
 */
public interface EmployeeRepository extends JpaRepository<Employee,String> {

    Optional<Employee> findByNameAndDeletedIsFalse(String empName);

    Optional<Employee> findByIdAndDeletedIsFalse(String empId);
}
